Xbasic
IMPORT_FROM_QUICKBOOKS Function
Syntax
C Import_From_Quickbooks(C type ,C source_filename_or_dsn ,C table_to_create ,C sql_statement [,C password [,C user_name ]])
Arguments
- typeCharacter
Constant: "QUICKBOOKS".
- source_filename_or_dsnCharacter
Full filename and path of "qlinker.mdb" found in the "QLinker" folder under the Alpha installation directory.
- table_to_createCharacter
Full filename and path of the Alpha table to create.
- sql_statementCharacter
An SQL expression that selects the files to take from "qlinker.mdb" to create the new Alpha table.
- passwordCharacter
Where required by QuickBooks: QuickBooks password.
- user_nameCharacter
Where required by QuickBooks: QuickBooks user name.
Returns
- resultCharacter
If an error occurs, returns an error message.
Description
IMPORT_FROM_QUICKBOOKS() imports a table from QuickBooks and creates an Alpha table. IMPORT_FROM_QUICKBOOKS( ) is a part of QLinker, which is available as an optional add-in for Alpha Anywhere.
Example
dim type as c= "QUICKBOOKS" dim src as c = "C:\Program Files\A5V5\QLinker\qlinker.mdb" dim table as c = "C:\Databases\Expressions Test\Invoice.dbf" dim sql as c =<<%sql% SELECT refnumber, billaddress_city, billaddress_state, txndate FROM invoice %sql% result = Import_From_Quickbooks(type, src, table, sql) showvar(result)
See Also